package me.heyclock.hl.recordwriter.controller.presenter;

import me.heyclock.hl.recordwriter.controller.LoginControlContract;

/**
 * 登录请求服务
 */
public class LoginControlPresenter implements LoginControlContract.Presenter{

    private LoginControlContract.View view;

    public LoginControlPresenter(LoginControlContract.View view){
        this.view = view;
    }

    @Override
    public void releaseResource() {

    }

    @Override
    public void login(String user, String pass) {
        ///< TODO 请求操作，UI操作
        view.showDialog();
        view.loginOnSuccess();
        view.disDialog();
    }
}
